<?php

class Dueno extends MY_Model {
 
    function Dueno()
    {
        // Call the Model constructor
        parent::MY_Model();

	$this->nombreTabla = "dueno";
	$this->idT1= "idDueno";
	$this->nombreCampo="nombre";

		$this->campos[] = array("realname" => "idUsuario",
					"clase" => "foranea",
					"label" => "",
					"modelo" => "Usuario",
					"rules" => "integer");
		
		$this->campos[] = array("realname" => "nombre",
					"clase" => "text",
					"label" => "Nombre",
					"rules" => "required|min_length[3]|max_length[45]||alpha_numeric_space");
		
		$this->campos[] = array("realname" => "apellido",
					"clase" => "text",
					"label" => "Apellido",
					"rules" => "required|min_length[3]|max_length[45]||alpha_numeric_space");
		

    }
     
}


?>
